package com.e2oto.seller.modules.seller.bean;

import java.io.Serializable;
import java.util.List;

/**
 * Created by ZhangLiQiang on 2017/11/14.
 */

public class CityBean implements Serializable{
    /**
     * id : 2
     * name : 北京城区
     * parent_id : 1
     * county_array : [{"id":3,"name":"东城区","parent_id":2},{"id":7,"name":"西城区","parent_id":2},{"id":11,"name":"朝阳区","parent_id":2},{"id":15,"name":"丰台区","parent_id":2},{"id":19,"name":"石景山区","parent_id":2},{"id":23,"name":"海淀区","parent_id":2},{"id":27,"name":"门头沟区","parent_id":2},{"id":31,"name":"房山区","parent_id":2},{"id":35,"name":"通州区","parent_id":2},{"id":39,"name":"顺义区","parent_id":2},{"id":43,"name":"昌平区","parent_id":2},{"id":47,"name":"大兴区","parent_id":2},{"id":51,"name":"怀柔区","parent_id":2},{"id":55,"name":"平谷区","parent_id":2},{"id":59,"name":"密云区","parent_id":2},{"id":63,"name":"延庆区","parent_id":2}]
     */

    private int id;
    private String name;
    private int parent_id;
    private List<DistrictBean> county_array;
    private boolean isSelected;

    public boolean isSelected() {
        return isSelected;
    }

    public void setSelected(boolean selected) {
        isSelected = selected;
    }
    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getParent_id() {
        return parent_id;
    }

    public void setParent_id(int parent_id) {
        this.parent_id = parent_id;
    }

    public List<DistrictBean> getCounty_array() {
        return county_array;
    }

    public void setCounty_array(List<DistrictBean> county_array) {
        this.county_array = county_array;
    }

    @Override
    public String toString() {
        return "CityBean{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", parent_id=" + parent_id +
                ", county_array=" + county_array +
                '}';
    }
}